package com.itfreer.cms.dictionary;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;

import com.itfreer.form.dictionary.LocalDictionaryBase;
import com.itfreer.form.dictionary.base.DictionaryItem;

/**
 * 授权方式
 */
@Component
public class SystemDictionary extends LocalDictionaryBase {

	@Override
	public String getDictionaryName() {
		return "cms_document_system";
	}

	@Override
	protected List<DictionaryItem> getDictionarys() {
		List<DictionaryItem> list = new ArrayList<DictionaryItem>();

		DictionaryItem item = new DictionaryItem();
		item.setId("1");
		item.setCode("1");
		item.setDisplay("winxp");
		item.setOrder(1);
		list.add(item);

		item = new DictionaryItem();
		item.setId("2");
		item.setCode("2");
		item.setDisplay("win7");
		item.setOrder(2);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("3");
		item.setCode("3");
		item.setDisplay("win8");
		item.setOrder(3);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("4");
		item.setCode("4");
		item.setDisplay("win10");
		item.setOrder(4);
		list.add(item);

		item = new DictionaryItem();
		item.setId("5");
		item.setCode("5");
		item.setDisplay("win2000");
		item.setOrder(5);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("6");
		item.setCode("6");
		item.setDisplay("win2003");
		item.setOrder(6);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("7");
		item.setCode("7");
		item.setDisplay("win2008");
		item.setOrder(7);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("8");
		item.setCode("8");
		item.setDisplay("win2012");
		item.setOrder(8);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("9");
		item.setCode("9");
		item.setDisplay("linux");
		item.setOrder(9);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("10");
		item.setCode("10");
		item.setDisplay("unix");
		item.setOrder(10);
		list.add(item);
		
		item = new DictionaryItem();
		item.setId("11");
		item.setCode("11");
		item.setDisplay("mac");
		item.setOrder(11);
		list.add(item);
		
		return list;
	}

}
